package com.feng.tiku.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 题库
 * </p>
 *
 * @author feng
 * @since 2023-03-20 11:03:08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("el_repo")
@ApiModel(value = "Repo对象", description = "题库")
public class Repo {

    @ApiModelProperty("题库ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("题库编号")
    @TableField("code")
    private String code;

    @ApiModelProperty("题库名称")
    @TableField("title")
    private String title;

    @ApiModelProperty("单选数量")
    @TableField("radio_count")
    private Integer radioCount;

    @ApiModelProperty("多选数量")
    @TableField("multi_count")
    private Integer multiCount;

    @ApiModelProperty("判断数量")
    @TableField("judge_count")
    private Integer judgeCount;

    @ApiModelProperty("简答题数量")
    @TableField("jdt_count")
    private Integer jdtCount;

    @ApiModelProperty("题库备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("乐观锁")
    @TableField("version")
    private Integer version;


}
